package cn.zjitc.exam.service;

import cn.zjitc.exam.domain.Product;

import java.util.List;

/**
 * @author 17976
 */
public interface ProductService {
    void save(Product product);
    void delete(Integer id);
    void update(Product product);

    List<Product> findAll();
    List<Product> findByPage(int page, int size);
    List<Product> search(String keyword, int page, int size);
    int count();
    Product findById(Integer id);
    int countByKeyword(String keyword);
}
